package oop.ex2.tokenizer;

import oop.ex2.expression.ExpressionNode;
import oop.ex2.expression.AbsFunctionNode;

/**
 * Searches for an absolute function.
 * @author daniel_i_l
 *
 */
public class AbsAnalyzer extends FunctionAnalyzer {
	private static final String PATTERN = "ABS";
	
	/**
	 * Construct a function analyzer.
	 */
	public AbsAnalyzer() {
		super(PATTERN);
	}

	@Override
	public ExpressionNode getExpressionNode() {
		return new AbsFunctionNode(_matchedString);
	}

}
